package com.shwread.android.qysw.bean.psychological;

import java.io.Serializable;
import java.util.List;

/**
 * 调查问卷详情bean
 */
public class QueDetailedBean implements Serializable {
    /**
     * 问卷信息
     */
    private QuestInfoBean questInfo;
    /**
     * 题目总数
     */
    private int total;
    /**
     * 最后访问的时间
     */
    private long requestTime;
    /**
     * 是否改变  y/n  String
     */
    private String isModify;


    public long getRequestTime() {
        return requestTime;
    }

    public void setRequestTime(long requestTime) {
        this.requestTime = requestTime;
    }

    public boolean getIsModify() {
        return "y".equals(isModify);
    }

    public void setIsModify(String isModify) {
        this.isModify = isModify;
    }

    public QuestInfoBean getQuestInfo() {
        return questInfo;
    }

    public void setQuestInfo(QuestInfoBean questInfo) {
        this.questInfo = questInfo;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    /**
     * 问卷信息
     */
    public static class QuestInfoBean implements Serializable {
        /**
         * 问卷id
         */
        private int id;
        /**
         * 标题
         */
        private String title;
        /**
         * 问卷介绍
         */
        private String introduction;
        private Object questionnaireItemInfo;
        /**
         * 问卷是否完成
         */
        private QuestionnaireUserInfoBean questionnaireUserInfo;
        /**
         * 问卷状态 1|2|3|4 未发布|进行中|完成|下架
         */
        private String status;
        /**
         * 题目信息列表
         */
        private List<QueInfo> questionnaireItemInfos;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getIntroduction() {
            return introduction;
        }

        public void setIntroduction(String introduction) {
            this.introduction = introduction;
        }

        public Object getQuestionnaireItemInfo() {
            return questionnaireItemInfo;
        }

        public void setQuestionnaireItemInfo(Object questionnaireItemInfo) {
            this.questionnaireItemInfo = questionnaireItemInfo;
        }

        public QuestionnaireUserInfoBean getQuestionnaireUserInfo() {
            return questionnaireUserInfo;
        }

        public void setQuestionnaireUserInfo(QuestionnaireUserInfoBean questionnaireUserInfo) {
            this.questionnaireUserInfo = questionnaireUserInfo;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public List<QueInfo> getQuestionnaireItemInfos() {
            return questionnaireItemInfos;
        }

        public void setQuestionnaireItemInfos(List<QueInfo> questionnaireItemInfos) {
            this.questionnaireItemInfos = questionnaireItemInfos;
        }

        public static class QuestionnaireUserInfoBean implements Serializable {
            private String isFinish;

            public boolean getIsFinish() {
                return "y".equals(isFinish);
            }

            public void setIsFinish(String isFinish) {
                this.isFinish = isFinish;
            }
        }
    }
}
